Psst: Open the JavaScript Console and try to play around with these functions:
linearSearch([9, 8, 7, 6, 5, 4, 3, 2, 1, 0], 4) // should return 5
binarySearch([5, 6, 10, 13, 14, 18, 30, 34, 35, 37, 40, 44, 64, 79,
84, 86, 95, 96, 98, 99], 95) // should return 16
naiveSearch("wowomgzomg", "omg") // should return 2
kmpSearch("aaaabaaaaabbbaaaab", "aaab") // should return 3